package org.skipper.samples.rpc.client;

import org.skipper.samples.rpc.server.HelloService;

import java.net.InetSocketAddress;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author shoujian
 * Date: 2021-09-24
 * Time: 上午10:34
 */
public class RPCClient {

    public static void main(String[] args) {
        HelloService service = org.skipper.rpc.client.RPCClient.getRemoteProxyObj(HelloService.class, new InetSocketAddress("localhost", 8080));
        System.out.println(service.sayHello());
    }

}
